package com.mysoft.gfyx.demo.service;

import com.alibaba.fastjson.JSON;
import com.mingyuanyun.sdk.mip.annotation.MipAuth;
import com.mingyuanyun.sdk.mip.client.IHttpApi;
import com.mingyuanyun.sdk.mip.enm.MipAuthType;
import com.mysoft.gfyx.demo.dto.GetEnterprise2Dto;
import com.mysoft.gfyx.demo.dto.GetEnterpriseDto;
import feign.Headers;
import feign.RequestLine;
import org.json.JSONObject;

import java.util.LinkedHashMap;

@MipAuth(MipAuthType.OAUTH2)
public interface TestMipService extends IHttpApi {
    @RequestLine("POST /portal/profit/enterprise")
    @Headers("Content-Type: application/json")
    String getEnterpriseInfo(GetEnterpriseDto getEnterpriseDto);

    @RequestLine("POST /v1/company/fuzzy-search")
    @Headers("Content-Type: application/json")
    LinkedHashMap getEnterpriseInfo2(GetEnterprise2Dto getEnterpriseDto);
}